  /**
   * Generate time : 2013-08-05 1:37:35
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBYearPlanChart 
 * table comment : 年采掘计划图主表 
 */
public class ZMCBYearPlanChart extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private Long fdNo = new Long(0);	/* 编号*/
	private String fdChartName = " ";		/* 计划图名称*/
	private String fdYear = " ";		/* 计划年份*/
	private Double fdMineTarget = new Double(0);		/* 采煤指标*/
	private Double fdGrubTarget = new Double(0);		/* 掘进指标*/
	private Double fdDeploitationTarget = new Double(0);		/* 开拓指标*/
	private String fdStatus = " ";		/* 计划状态*/
	private String fdEditDate = " ";		/* 编制日期*/
	private String fdPublisher = " ";		/* 编制人*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);

	eiColumn = new EiColumn("fdNo");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdChartName");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("计划图名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("计划年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMineTarget");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("采煤指标");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGrubTarget");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("掘进指标");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDeploitationTarget");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("开拓指标");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("计划状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEditDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("编制日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPublisher");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("编制人");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCBYearPlanChart() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdNo - 编号
	 * @return the fdNo
	 */
	public Long getFdNo() {
		return this.fdNo;
	}
	
	/**
	 * set the fdNo - 编号
	 */
	public void setFdNo(Long fdNo) {
		this.fdNo = fdNo;
	}

	/**
	 * get the fdChartName - 计划图名称
	 * @return the fdChartName
	 */
	public String getFdChartName() {
		return this.fdChartName;
	}
	
	/**
	 * set the fdChartName - 计划图名称
	 */
	public void setFdChartName(String fdChartName) {
		this.fdChartName = fdChartName;
	}
	
	/**
	 * get the fdYear - 计划年份
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}
	
	/**
	 * set the fdYear - 计划年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}
	
	/**
	 * get the fdMineTarget - 采煤指标
	 * @return the fdMineTarget
	 */
	public Double getFdMineTarget() {
		return this.fdMineTarget;
	}
	
	/**
	 * set the fdMineTarget - 采煤指标
	 */
	public void setFdMineTarget(Double fdMineTarget) {
		this.fdMineTarget = fdMineTarget;
	}
	
	/**
	 * get the fdGrubTarget - 掘进指标
	 * @return the fdGrubTarget
	 */
	public Double getFdGrubTarget() {
		return this.fdGrubTarget;
	}
	
	/**
	 * set the fdGrubTarget - 掘进指标
	 */
	public void setFdGrubTarget(Double fdGrubTarget) {
		this.fdGrubTarget = fdGrubTarget;
	}
	
	/**
	 * get the fdDeploitationTarget - 开拓指标
	 * @return the fdDeploitationTarget
	 */
	public Double getFdDeploitationTarget() {
		return this.fdDeploitationTarget;
	}
	
	/**
	 * set the fdDeploitationTarget - 开拓指标
	 */
	public void setFdDeploitationTarget(Double fdDeploitationTarget) {
		this.fdDeploitationTarget = fdDeploitationTarget;
	}
	
	/**
	 * get the fdStatus - 计划状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 计划状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	/**
	 * get the fdEditDate - 编制日期
	 * @return the fdEditDate
	 */
	public String getFdEditDate() {
		return this.fdEditDate;
	}
	
	/**
	 * set the fdEditDate - 编制日期
	 */
	public void setFdEditDate(String fdEditDate) {
		this.fdEditDate = fdEditDate;
	}
	
	/**
	 * get the fdPublisher - 编制人
	 * @return the fdPublisher
	 */
	public String getFdPublisher() {
		return this.fdPublisher;
	}
	
	/**
	 * set the fdPublisher - 编制人
	 */
	public void setFdPublisher(String fdPublisher) {
		this.fdPublisher = fdPublisher;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdNo(NumberUtils.toLong(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdChartName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdChartName")), fdChartName));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdMineTarget(NumberUtils.toDouble(StringUtils.toString(map.get("fdMineTarget")), fdMineTarget));
		setFdGrubTarget(NumberUtils.toDouble(StringUtils.toString(map.get("fdGrubTarget")), fdGrubTarget));
		setFdDeploitationTarget(NumberUtils.toDouble(StringUtils.toString(map.get("fdDeploitationTarget")), fdDeploitationTarget));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdEditDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEditDate")), fdEditDate));
		setFdPublisher(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPublisher")), fdPublisher));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
			map.put("fdNo",StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));		
			map.put("fdChartName",StringUtils.toString(fdChartName, eiMetadata.getMeta("fdChartName")));	
			map.put("fdYear",StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));	
			map.put("fdMineTarget",StringUtils.toString(fdMineTarget, eiMetadata.getMeta("fdMineTarget")));	
			map.put("fdGrubTarget",StringUtils.toString(fdGrubTarget, eiMetadata.getMeta("fdGrubTarget")));	
			map.put("fdDeploitationTarget",StringUtils.toString(fdDeploitationTarget, eiMetadata.getMeta("fdDeploitationTarget")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdEditDate",StringUtils.toString(fdEditDate, eiMetadata.getMeta("fdEditDate")));	
			map.put("fdPublisher",StringUtils.toString(fdPublisher, eiMetadata.getMeta("fdPublisher")));	
			
		return map;
	
	}
}